package com.example.chat.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.example.common.core.domain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 群组消息实体类
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("chat_group_message")
public class GroupMessage extends BaseEntity {
    
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;             // 消息ID
    
    @TableField("group_id")
    private Long groupId;         // 群组ID
    
    @TableField("sender_id")
    private Long senderId;        // 发送者ID
    
    @TableField("sender_name")
    private String senderName;    // 发送者名称
    
    @TableField("content")
    private String content;       // 消息内容
    
    @TableField("status")
    private Integer status;       // 状态: 0-正常，1-已撤回
} 